home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Gamer Resource Kit / Hardcore Gamer Resource Kit - Disc 1.iso / console / sniper-zoom1.zip / zoom.rc < prev   
Text File  |  1998-01-04  |  2KB  |  57 lines

  1. // Zoom script for Quake II by Adonnai
  2. // mailto:mental@internexus.net
  3. // =======================================
  4. // This script creates zooming functions
  5. // that include 3 zoom levels and
  6. // crosshair changing with zoom factor.
  7. // =======================================
  8.  
  9. // Setup
  10. // =======================================
  11. set hand_old $hand
  12.  
  13. // Change bindings to the keys you like
  14. // =======================================
  15.  
  16. // Key cycles through zoom settings
  17. bind "KP_PGUP" "zoom"
  18.  
  19. // Key jumps to zoom factor x1 while held
  20. bind "KP_DEL" "+zoom_x1"
  21.  
  22. // Key jumps to zoom factor x3 while held
  23. bind "KP_SLASH" "+zoom_x3"
  24.  
  25. // Key zooms then fires when released (CTF)
  26. bind "KP_END" "+zoom_fire"
  27.  
  28. // Key sets sniperfire zoom factor to x1
  29. bind "i" "alias +zoom_fire zoomx1;echo Sniperfire Factor =x1="
  30.  
  31. // Key sets sniperfire zoom factor to x2
  32. bind "o" "alias +zoom_fire zoomx2;echo Sniperfire Factor =x2="
  33.  
  34. // Key sets sniperfire zoom factor to x3
  35. bind "p" "alias +zoom_fire zoomx3;echo Sniperfire Factor =x3="
  36.  
  37.  
  38.  
  39. // Aliases for factor x1/x3 keys
  40. // =======================================
  41.  
  42. alias +zoom_x1 "zoomx1"
  43. alias -zoom_x1 "zoomx0"
  44. alias +zoom_x3 "zoomx3"
  45. alias -zoom_x3 "zoomx0"
  46. alias +zoom_fire "zoomx3"
  47. alias -zoom_fire "+attack;wait;zoomx0;wait;-attack"
  48.  
  49. // Aliases for zoom cycling
  50. // =======================================
  51.  
  52. alias zoom "zoomx1"
  53. alias zoomx1 "fov 46;m_pitch 0.015;m_yaw 0.015;echo Zoom Factor =x1=;set crosshair 3;set hand $hand_old;alias zoom zoomx2"
  54. alias zoomx2 "fov 24;m_pitch 0.010;m_yaw 0.010;echo Zoom Factor =x2=;set crosshair 3;set hand 2;alias zoom zoomx3"
  55. alias zoomx3 "fov 8;m_pitch 0.005;m_yaw 0.005;echo Zoom Factor =x3=;set crosshair 2;set hand 2;alias zoom zoomx0"
  56. alias zoomx0 "fov 90;m_pitch 0.022;m_yaw 0.022;echo Zoom =Off=;set crosshair 3;set hand $hand_old;alias zoom zoomx1"
  57.